package com.rupertjones.globalcron.web.security;

import org.springframework.security.core.GrantedAuthority;

/**
 * <p>&copy Rupert Jones 2011</p>
 *
 * @author rup
 */
public class Authority implements GrantedAuthority {
    private String authority;

    public Authority(String role) {
        this.authority = "ROLE_" + role;
    }

    @Override
    public String getAuthority() {
        return authority;
    }

    @Override
    public String toString() {
        return authority;
    }
}
